import {reqAddressInfo, reqUserLogin} from '@/api'

const state ={
    address:[],
    orderInfo:{}
}
const mutations = {
    GETADDRESSINFO(state,address){
        state.address = address;
    }
}
//获取用户的地址
const actions = {
   async getAddressInfo({commit}){
        let result = await reqAddressInfo();
        console.log(result);
        if(result.code == 200){
            commit("GETADDRESSINFO",result.data);
        }
    }
}
const getters = {}
export default{
state,
actions,
mutations,
getters

}